﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CrawlFish.Web
{
    public class CrawlResult
    {
        public CrawlResult()
        {
        }

        public string Content
        {
            get;
            set;
        }

        public string Markup
        {
            get;
            set;
        }

        public List<string> Links
        {
            get;
            set;
        }

        public string GetSerialized()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat("content:{0}\t", Content);
            sb.AppendFormat("markup:{0}\t", Markup);
            foreach (string link in Links)
            {
                sb.AppendFormat("outlink:{0} ", link);
            }
            return sb.ToString();
        }
    }
}

